/*
 * @Description: 部门负面清单
 * @Author: oooh
 * @Date: 2024-04-23 17:55:21
 * @LastEditors: oooh
 * @LastEditTime: 2024-04-26 19:38:47
 * @FilePath: \Civil_Servant_Performance_PC\src\api\work-approval\negative\dept\index.js
 */
import request from '@/utils/request'

// 列表
export function list(query) {
  return request({
    url: '/api/deptPunishmentInventories',
    method: 'get',
    params: query
  })
}

// 新增
export function add(data) {
  return request({
    url: '/api/deptPunishmentInventories',
    method: 'post',
    data: data
  })
}

// 更新
export function update(data) {
  return request({
    url: '/api/deptPunishmentInventories',
    method: 'put',
    data: data
  })
}

// 删除
export function remove(query) {
  return request({
    url: '/api/deptPunishmentInventories/' + query.id,
    method: 'delete',
    params: query
  })
}
